﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
	CodeBehind="Login.aspx.cs" Inherits="ASPItalia.ModelVirtualCasting.Web.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Area riservata
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<form runat="server">
	<asp:Login ID="LoginControl" runat="server" RenderOuterTable="false" PasswordRequiredErrorMessage="Password obbligatoria" UserNameRequiredErrorMessage="Username obbligatorio" RememberMeText="Ricordami" LoginButtonText="Login" FailureText="Impossibile effettuare il login">
		<LayoutTemplate>
			<h1>Accesso all'area riservata</h1>
			
			<div class="table">
				<div class="tr">
					<div class="td1">
						<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
					</div>
					<div class="td2">
						<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
						<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" Display="Dynamic"
							ErrorMessage="Username obbligatorio" ToolTip="Username obbligatorio" ValidationGroup="LoginControl">*</asp:RequiredFieldValidator>
					</div>
				</div>
				<div class="tr">
					<div class="td1">
						<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
					</div>
					<div class="td2">
						<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
						<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" Display="Dynamic"
							ErrorMessage="Password obbligatoria" ToolTip="Password obbligatoria" ValidationGroup="LoginControl">*</asp:RequiredFieldValidator>
					</div>
				</div>
				<div class="tr">
					<asp:CheckBox ID="RememberMe" runat="server" Text="Ricordami" />
					<p>
						<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal></p>
					</p>
				</div>
				<div class="tr">
					<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="LoginControl" />
				</div>
			</div>
		</LayoutTemplate>
	</asp:Login>

	<asp:Placeholder runat="server" id="ResetLocalPassword">
		<p><strong><asp:Literal ID="NewPassword" runat="server" /></strong></p>
		<p>
			<strong>Attenzione</strong>:
			dato che l'app è sul server locale, puoi
			<asp:LinkButton runat="server" ID="ResetPasswordLink" OnClick="ResetAdminPassword">resettare la password di amministratore</asp:LinkButton>.
		</p>
	</asp:Placeholder>

	</form>
</asp:Content>
